package com.CMS.client;

import java.util.List;

import com.CMS.server.domain.Privilege;
import com.CMS.server.domain.Rol;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface RolServiceAsync {

	void getRoles(AsyncCallback<List<Rol>> callback) throws Exception;
	
	void deleteRol(long id,AsyncCallback<Void> callback);
	
	void createRol(String description,List<Long> privilegios,AsyncCallback<Void> callback);
	
	void updateRol(long id,boolean flagDelete,String description,AsyncCallback<Rol> callback);
	
	void getPrivileges(long id, AsyncCallback<List<Privilege>> callback);
	
	void updatePrivileges(long idRol,List<Long> lista, AsyncCallback<Void> callback);
}
